<#ibiztemplate>
TARGET=PSWORKFLOW
</#ibiztemplate>
# ${item.getName()}

## 流程版本

<#if item.getPSWFVersions()??>
<#list item.getPSWFVersions() as wfversion>
### ${wfversion.getName()}

{% plantuml %}

<#list wfversion.getPSWFLinks() as link>
<#assign from=link.getFromPSWFProcess()>
<#assign to=link.getToPSWFProcess()>
<#if from.getWFProcessType()=='START'>(*)<#else>"${from.getName()}"</#if> --> [<#if link.getLogicName()?default("")?trim?length gt 1>${link.getLogicName()}<#else>${link.getName()}</#if>]<#if to.getWFProcessType()=='END'>(*)<#else>"${to.getName()}"</#if>

</#list>
{% endplantuml %}

### 审批步骤

|    序号 |    审批步骤   |    审批人     |
| -------- | --------   |------------|
<#if wfversion.getPSWFProcesses()??>
<#assign i=0>
<#list wfversion.getPSWFProcesses() as process>
<#if process.getWFProcessType() == 'INTERACTIVE'>
<#assign i = i + 1>
|${i}|${process.getName()}|<#if process.getPSWFProcessRoles()??><#list process.getPSWFProcessRoles() as procrole>${procrole.getName()}<br></#list></#if>|
</#if>
</#list>
</#if>
</#list>
</#if>